#ifndef BERT_SUPERSERVER_H
#define BERT_SUPERSERVER_H

#include "TCPServer.h"
#include "Singleton.h"

class SuperServer : public TCPServer , public Singleton<SuperServer>
{
	friend class Singleton<SuperServer>;

	in_port_t port;// 从配置文件读取
public:

	SuperServer(in_port_t port = 8888)
	{
		this->port = port;
	}

	void newTCPTask(int connfd, struct sockaddr_in * client );

	bool init(); // override
};

#endif

